﻿<%@ Page language="c#" MasterPageFile="~/SF/Forms/SF.Master" Codebehind="BAMWorkflow.aspx.cs" AutoEventWireup="True" Inherits="ScenarioFramework.Portal.SF.Reports.BAMWorkflow" %>
<%@ MasterType TypeName="ScenarioFramework.Portal.SF.Forms.SF"  %>
<%@ Register TagPrefix="it" TagName="TreeVerticalMenu" Src="../Forms/UserControls/TreeVerticalMenu.ascx" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderLateral" runat="server">
    <it:TreeVerticalMenu ID="TreeVerticalMenu" Runat="server"></it:TreeVerticalMenu>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:GridView ID="GridView1" runat="server" CellPadding="2" ForeColor="#333333" 
        GridLines="Horizontal" AllowSorting="True" Width="50%"
        CellSpacing="2" HorizontalAlign="Left" ShowFooter="True"  
        AutoGenerateColumns="False">
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <Columns>
            <asp:HyperLinkField HeaderText="ProcessId" DataNavigateUrlFields="ProcessId" 
                DataNavigateUrlFormatString="BAMActivities.aspx?ProcessId={0}" DataTextField="ProcessId" />
               
            <asp:BoundField DataField="Name" />
            
            <asp:TemplateField HeaderText="Stato" SortExpression="Status">
                <HeaderTemplate>
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Value="ALL">Tutti</asp:ListItem>
                        <asp:ListItem Value="COMPLETED">Completati</asp:ListItem>
                        <asp:ListItem Value="ERROR">In Errore</asp:ListItem>
                        <asp:ListItem Value="CREATED">Creati</asp:ListItem>
                    </asp:DropDownList>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ProcessId") %>'></asp:Label>
                </ItemTemplate>
                </asp:TemplateField>
                
                <asp:BoundField DataField="ParentProcess" />
        </Columns>
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>

</asp:Content>
